// 弹出框
export const modal = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['800px',"95%"], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal1 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['800px',"500px"], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};

export const modal2 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['900px','500px'], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal3 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['1200px','600px'], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal4 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['700px','250px'], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal5 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['700px','250px'], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });
};
export const modal6 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area:'800px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal7 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: ['700px','350px'], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal8 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: '700px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const modal9 = (title, html) => {

    layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        area: '700px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });
};



export const _modal = (title, html) => {

   layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        zIndex:'200',
        area: '800px', //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};
export const _modal2 = (title, html) => {

   layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        zIndex:'200',
        area: ['800px','300px'], //宽高
        content: html,
        end: function () {
            layer.closeAll();
        }
    });

};


export const tinyModal = (title, html) => {

   return layer.open({
        type: 1,
        title: title,
        scrollbar: false,
        zIndex:'500',
        area: '420px', //宽高
        content: html,
        end: function () {
            // layer.closeAll();
        }
    });

};



export const iframeBox=(title,url)=>{

layer.open({
  type: 2,
  title: title,
  shadeClose: true,
  shade: 0.8,
  area: ['1200px','90%'],
  content: url 
}); 

}



// 消息提示
export const msg = (msg, fn) => {

    layer.msg(msg, {
        time: 1300
    }, fn || function () {});

};

// 错误提示
export const tips = (msg, elem) => {

    layer.tips(msg, elem, {
        tips: [1, '#f39c12'],
        time: 1300
    });

};

//询问框
export const confirm = (msg, title, fn) => {
    layer.confirm(msg, {
        title: title,
        btn: ['确定', '取消']
    }, fn || function () {});
};






